home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global firstTime, goOn, notClicked, gPlaySound, gTiming, audioPath
- set the puppet of sprite 20 to 1
- set the constraint of sprite 20 to 15
- if not soundBusy(1) and not gPlaySound then
- if gTiming then
- startTimer()
- gTiming = 0
- end if
- if (the timer > (8 * 60)) and notClicked then
- goQuick = 1
- goOn = 1
- end if
- end if
- if gPlaySound then
- frameNum = the frame
- soundFile = getAudioFile(frameNum)
- sound playFile 1, audioPath & soundFile & ".AIF"
- gPlaySound = 0
- gTiming = 1
- end if
- end
-
- on exitFrame
- global firstTime, goOn, gPlaySound, gTiming
- if goOn then
- goOn = 0
- firstTime = 1
- gPlaySound = 1
- gTiming = 0
- go(the frame + 1)
- else
- go(the frame)
- end if
- end
-